<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:kiwi="http://www.kiwi-project.eu/jsf">

	<!--  commenting functionality -->
	<rich:togglePanel id="versionedTags" switchType="ajax"
		stateOrder="closed,open">
		<f:facet name="closed">
			<rich:toggleControl style="color: #8BC53E;text-decoration:none;">
				<h3 class="versionedTagsClosed">Tags</h3>
			</rich:toggleControl>
		</f:facet>

		<f:facet name="open">
 		<f:subview id="versionedTagsPanel">
			<rich:toggleControl style="color: #8BC53E;text-decoration:none;">
				<h3 class="versionedTagsOpen">Tags</h3>
			</rich:toggleControl>
			<h:panelGrid columns="2" columnClasses="name,inspector-value">
				<s:div rendered="#{! empty kiwi.action.revision.previewAction.taggingUpdate.addedTags}">
			    	<strong>Added Tags</strong>
			    </s:div>
			    <s:div  id="previewAddedTags" rendered="#{! empty kiwi.action.revision.previewAction.taggingUpdate.addedTags}">
			    	<ui:repeat value="#{kiwi.action.revision.previewAction.taggingUpdate.addedTags}" var="tag">
			    	    <h:outputText value="#{tag.taggingResource.title}"/><br/>
			    	</ui:repeat>
			    </s:div>
			    <s:div rendered="#{! empty kiwi.action.revision.previewAction.taggingUpdate.removedTags}">
			    	<strong>Removed Tags</strong>
			    </s:div>
			    <s:div  id="previewRemovedTags" rendered="#{! empty kiwi.action.revision.previewAction.taggingUpdate.removedTags}">
			    	<ui:repeat value="#{kiwi.action.revision.previewAction.taggingUpdate.removedTags}" var="tag">
			    	    <h:outputText value="#{tag.taggingResource.title}"/><br/>
			    	</ui:repeat>
			    </s:div>
			</h:panelGrid>
 		</f:subview>
		</f:facet>
	</rich:togglePanel>
</ui:composition>